POV-Ray : Newsgroups : povray.newusers : (X <= D) different than ((X<D) | (X=D)) ? : Re: (X <= D) different than ((X<D) | (X=D)) ? Server Time
28 Jul 2024 22:16:51 EDT (-0400)
  Re: (X <= D) different than ((X<D) | (X=D)) ?  
From: Warp
Date: 22 Apr 2000 16:21:05
Message: <390209b1@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
: Further, the documentation should make clear that floating-point math is
: _not_ precise. Especially in long operations the error will build up

  That's right. The key problem here is the value 0.1. It can't be accurately
represented in binary format.
  We have the same problem with the decimal format with values like 1/3;
it can't be represented accurately.

  It is NOT a bug. It's just a hardware limitation.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.